<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a=100;
        if (a%2==0){
            console.log("偶数");
        }else{
            console.log("奇数");
        }

        var e=100;
        var res=e%2==0?"偶数":"奇数";
        console.log(res);


        var a=100;
        var b=200;
        if(a>b){
            console.log("a大");
        }else{
            console.log("b大");
        }

        var year=2001;
        var y1=year%4 == 0&& year%100==0;
        var y2=year%400==0;
        if(y1||y2){
            console.log(year+"是闰年");
        }else{
            console.log(year+"不是闰年");
        }



        var x=20;
        var y;
        if(x<1){
            console.log(y=x);
        }else if(x>=1&&x<10){
            console.log(y=2*x+1);
        }else{
            console.log(y=5*x-17);
        }

        var score=parseInt(Math.random()*101);
        if(score>85){
            console.log(score+"分,优秀");
        }else if(score<=85&&score>=75){
            console.log(score+"分,良好");
        }else if(score<75&&score>=60){
            console.log(score+"分,及格");
        }else{
            console.log(score+"分,不及格");
        }

        var f=-5;
        if(f!=0){
            if(f<0){
                console.log(f+"小于0");
            }else {
                console.log(f+"大于0");
            }
        }else{
            console.log(f+"等于0");
        }
    </script>
</body>
</html>